package cn.iocoder.yudao.module.hs.controller.admin.materialbox.vo;

import cn.iocoder.yudao.module.hs.controller.admin.material.vo.MaterialSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料箱信息新增/修改 Request VO")
@Data
public class MaterialBoxSaveReqVO {

    @Schema(description = "物料箱主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17183")
    private Long id;

    @Schema(description = "物料箱编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料箱编码不能为空")
    private String code;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "6455")
    @NotNull(message = "所在仓库不能为空")
    private Long warehouseId;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String trayCode;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status;

    @Schema(description = "入库时间")
    private LocalDateTime warehousingTime;

    @Schema(description = "物料列表")
    private List<MaterialSaveReqVO> materials;
}